<?php

namespace EasyUser\Wechat;

/**
 * @method  \EasyUser\Wechat\Material\Material material()
 */
class Application
{
    public function __call($name, $arguments)
    {

        $selfName = substr(static::class, strlen(__NAMESPACE__) + 1);
        if (strpos($name, '_')) {
            $name = implode('', explode(' ',ucwords(str_replace('_',' ', $name))));
        }
        $className = 'EasyUser\\Wechat\\' . ucfirst($name) . '\\' .ucfirst($name);

        return new $className;
    }
}